﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Linq;
using System.Collections;

namespace WebHoiChoMuaBan.Models
{
    public class CustomerList
    {
          private IList<Customer> customers;
        private int totalPages;
        private int currentPage;

        public int CurrentPage
        {
            get { return currentPage; }
            set { currentPage = value; }
        }

        public IList<Customer> Customers
        {
            get { return customers; }
            set { customers = value; }
        }

        public void Add(Customer customer)
        {
            this.customers.Add(customer);
        }

        public int TotalPages
        {
            get { return totalPages; }
            set { totalPages = value; }
        }

        public CustomerList(int totalPages)
        {
            this.totalPages = totalPages;
            this.customers = new List<Customer>();
        }
    }
}